<small>
<div class="row">
  <div class="span3 bs-docs-sidebar "> <*include file="<*$controller*>/location.tpl"*></div>
  <div class="span8">
    <div class="form-actions">
      <button type="button" class="btn btn-primary"    onclick="window.location='/<*$controller*>/coupon'" >发布优惠券</button>
    </div>
    <table class="table table-condensed table-bordered table-hover span9" >
      <tr class="success">
        <td><strong>编号</strong></td>
        <td><strong>名称</strong></td>
        <td><strong>优惠券类型</strong></td>
        <td><strong>服务类型</strong></td>
        <td><strong>金额(元 或 %)</strong></td>
        <td><strong>优惠券张数</strong></td>
        <td><strong>已使用</strong></td>
        <td><strong>未使用</strong></td>
        <td><strong>过期时间</strong></td>
      </tr>
      <*foreach from=$result item=item key=key name="animals"*>
      <tr onclick="useddetail(<*$item.c_id*>)" onmouseover="this.style.cursor='pointer'" >
        <td><strong><*$smarty.foreach.animals.iteration*></strong></td>
        <td><strong><*$item.q_title*></strong></td>
        <td><strong><*$item.q_type*></strong></td>
        <td><strong><*$item.product_type*></strong></td>
        <td><strong> <*$item.price*></strong></td>
        <td><strong><*$item.amount*></strong></td>
        <td><strong><*$item.used*></strong></td>
        <td><strong><*$item.unused*></strong></td>
        <td><strong><*$item.expiry*></strong></td>
      </tr>
      <*/foreach*>
    </table>
  </div>
  <script type="text/javascript"> 
  function useddetail(id){
	  
	 window.location='/<*$controller*>/useddetail/id/'+id;   
	  
	  }  
	  
 </script> 
</div>
</small> 